package com.dmooo.yxmmerchant.view.contract;

import com.common.mvpbase.BaseView;
import com.common.net.listener.HttpOnNextListener;

import java.io.File;

public class RegisterContract {
    public interface RegisterView extends BaseView{
        void getPhoneSuccess();
        void registerSuccess();
        void submitProfileSuccess();
        void submitIdSuccess();
    }
    public interface RegisterMdl{
        void getPhoneCode(String phone, HttpOnNextListener listener);
        void doRegister(String phone,String code,String pwd,HttpOnNextListener listener);
        /**
         * phone	char(11)
         * merchant_type	char(1)
         * merchant_type_id	int(10)
         * merchant_type_id2	int(10)
         * merchant_name	varchar(20)
         * merchant_avatar	file
         * service_tel	varchar(30)
         * province	varchar(30)
         * city	varchar(30)
         * county	varchar(30)
         * detail_address	varchar(100)
         * lng_lat	varchar(100)
         * business_day_begin	char(1)
         * business_day_end	char(1)
         * business_hours_begin	varchar(20)
         * business_hours_end	varchar(20)
         */
        void submitMerchantProfile(String phone, String merchant_type, String merchant_name, File avatar,String service_tel,String business_day_begin,String business_day_end,String province,String city,String county,HttpOnNextListener listener);

        /**
         * phone	char(11)	是	手机号码
         * business_license	file	是	营业执照
         * hygienic_license	file	否	食品卫生行业许可证
         * artificial_person	varchar(30)	是	法人姓名
         * artificial_person_id_img1	file	是	法人身份证正面照片
         * artificial_person_id_img2	file	是	法人身份证反面照片
         * artificial_person_id_num	varchar(20)	是	法人身份证号码
         */
        void submitId(String phone,File business_license,String artificial_person,String artificial_person_id_num, File artificial_person_id_img1,File artificial_person_id_img2,HttpOnNextListener listener);
    }
    public interface RegisterPtr{
        void getPhoneCode(String phone);
        void doRegister(String phone,String code,String pwd);
        void submitMerchantProfile(String phone, String merchant_type, String merchant_name, File avatar,String service_tel,String business_day_begin,String business_day_end,String province,String city,String county);
        void submitId(String phone,File business_license,String artificial_person,String artificial_person_id_num, File artificial_person_id_img1,File artificial_person_id_img2);
    }
}
